function [ numCount, ratioObjectAndBackround ] = ProcessEachRow( L )
%PROCESSEACHROW Summary of this function goes here
%   Detailed explanation goes here
    numCount = 0;  
    [a sizeL] = size(L);
    ibe = 0;
    object = 0;    
    for i=1:sizeL-1
        if (L(1,i) ~= L(1,i+1))
            if  (L(1,i)  == 0) 
                object = object+i-ibe-1;
            end
            if ((i-ibe)>2)
                numCount = numCount+1;
            end
            ibe = i;
        end
    end
    ratioObjectAndBackround = object/(sizeL);
end

